<?php
/**
  * 前端文件配置
  *
  * @access public
  * @author virowin<virowin@gmail.com>
  * @version 1.0 Wed Apr 25 15:18:22 CST 2012
  * @package app
  */
//头文件引入
define(VIROWIN,1);
require_once('include.php');


$userinfo = Biz_User::getUserFilter(array('id'=>$_SESSION['userinfo']['id']));
$smarty = new Lib_SmartyTpl();
$team_list = Biz_Team::getAllTeam();
$schedule = Biz_Schedule::getSchedule(array('team'=>$userinfo['teamid']),'datetime asc',5);
$smarty->assign('schedule',$schedule);
$smarty->assign('userinfo',$userinfo);
$smarty->assign('team_list',$team_list);
$smarty->show('team');

$list = Biz_Player::getAllGamePlayer();
Lib_Cache::set('players_list',$list);
print_z(Lib_Cache::get('players_list'));